dasding = (typeof(dasding) === 'undefined') ? {} : dasding;
dasding.config = (typeof(dasding.config) === 'undefined') ? {} : dasding.config;

dasding.config.devmode = true;

if (dasding.config.devmode) {
	dasding.config.eventsListUrl = "resources/dummy/Events"
	dasding.config.eventByIdUrl = "resources/dummy/Event"
	dasding.config.eventCategoryList = "resources/dummy/EventCategories"
	dasding.config.userByIdUrl = "resources/dummy/User"
} else {
	dasding.config.eventsListUrl = "http://dev-eth0.homeunix.org:8888/dasding/api/events/find"
	dasding.config.eventByIdUrl = "http://dev-eth0.homeunix.org:8888/dasding/api/events/id/"
	dasding.config.eventByIdUrl = "https://dev-eth0.homeunix.org/dasding/api/events/categories/find"
	dasding.config.userByIdUrl = "https://dev-eth0.homeunix.org/dasding/api/user/id/"
}

dasding.prototypes = (typeof(dasding.prototypes) === 'undefined') ? {} : dasding.prototypes;

dasding.prototypes.profile_prototype = {
   "dataType":"USER",
  "id":"",
  "actionApplications":null,
  "fullname":"",
  "interestedIn":null,
  "interests":null,
  "mail":"",
  "name":"",
  "password":"",
  "phone":"",
  "roles":[]
}

dasding.prototypes.event_prototype = {
	"dataType":"EVENT",
  	"id":"",
  	"contact":{    
	  	"dataType":"USER",
	    "id":"",
	    "fullname":"",
	    "mail":"",
	    "name":"",
	    "phone":"",
	    "roles":[
	      "",
	      ""
	    ]
	},
	"description":"",
  	"location":{
	    "id":"",
	    "city":"",
	    "latitude":"",
	    "longitude":"",
	    "name":"",
	    "zip":""
  	},
  	"name":"",
  	"responsible":{
	  	"dataType":"USER",
	    "id":"",
	    "fullname":"",
	    "mail":"",
	    "name":"",
	    "phone":"",
	    "roles":[
	      "",
	      ""
	    ]  		
  	},
  	"time":"",
  	"actions":{
		"action":[
      		{
        		"id":"",
        		"contact":{
				  	"dataType":"USER",
				    "id":"",
				    "fullname":"",
				    "mail":"",
				    "name":"",
				    "phone":"",
				    "roles":[
				      "",
				      ""
				    ]  		
		        },
        		"description":"",
        		"location":{
				    "id":"",
				    "city":"",
				    "latitude":"",
				    "longitude":"",
				    "name":"",
				    "zip":""
			        },
		        "name":"",
        		"responsible":{
				  	"dataType":"USER",
				    "id":"",
				    "fullname":"",
				    "mail":"",
				    "name":"",
				    "phone":"",
				    "roles":[
				      "",
				      ""
				    ]  		
		        },
        		"time":"",
        		"category":{
          			"dataType":"ACTIONCATEGORY",
          			"id":"",
          			"createdBy":{
					  	"dataType":"USER",
					    "id":"",
					    "fullname":"",
					    "mail":"",
					    "name":"",
					    "phone":"",
					    "roles":[
					      "",
					      ""
					    ]  		
		 	        },
          			"description":"",
          			"name":"",
          			"verified":""
        		},
        		"event":{
          			"dataType":"EVENT",
          			"id":"",
          			"actions":null,
          			"prospects":null,
          			"status":""
        		},
        		"participants":null,
        		"status":""
      		}
      	]  		
  	},
  	"category":{},
  	"prospects":null,
  	"status":""
};

